<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
           
      <ui:composition template="projectTemplate.xhtml">
        <ui:define name="top"><h1>Configuration Page</h1></ui:define>
        
        <ui:define name="content">
                                
        <h:form>
                     
            <p:panel header="Input Health Thresholds">
            <h:panelGrid columns="2">    
                
            <h:outputLabel for="sharedpoolsizelabel" value="Shared Pool Size" style="font-weight: bold"/>  
            <br/>
            <h:outputLabel for="sps_redthresholdlabel" value="Threshold Requiring DBA Attention (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="sps_redThresholdvalue" label="sps_RedThreshold" style="text-align:right"
                         value="#{configuration.sps_redThreshold}"/>
                       
            <h:outputLabel for="sps_yellowthresholdlabel" value="Unhealthy Threshold (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="sps_yellowThresholdvalue" label="sps_YellowThreshold" style="text-align:right"
                         value="#{configuration.sps_yellowThreshold}"/>
                           
            <h:outputLabel for="buffercachelabel" value="Buffer Cache" style="font-weight: bold"/>  
            <br/>
            <h:outputLabel for="bc_redthresholdlabel" value="Threshold Requiring DBA Attention (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="bc_redThresholdvalue" label="bc_RedThreshold" style="text-align:right"
                         value="#{configuration.bc_redThreshold}"/>
                       
            <h:outputLabel for="bc_yellowthresholdlabel" value="Unhealthy Threshold (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="bc_yellowThresholdvalue" label="bc_YellowThreshold" style="text-align:right"
                         value="#{configuration.bc_yellowThreshold}"/>
                        
            <h:outputLabel for="redologbufferlabel" value="Redo Log Buffer/Files" style="font-weight: bold"/>  
            <br/>
            <h:outputLabel for="lb_redthresholdlabel" value="Threshold Requiring DBA Attention: "
            styleClass="requiredLbl"/>
            <h:inputText id="lb_redThresholdvalue" label="lb_RedThreshold" style="text-align:right"
                         value="#{configuration.lb_redThreshold}"/>                       
            
            <h:outputLabel for="lb_yellowthresholdlabel" value="Unhealthy Threshold: "
            styleClass="requiredLbl"/>
            <h:inputText id="lb_yellowThresholdvalue" label="lb_YellowThreshold" style="text-align:right"
                         value="#{configuration.lb_yellowThreshold}"/>
                        
            <h:outputLabel for="sortingmemoryarealabel" value="Memory Area Used for Sorting" style="font-weight: bold"/>  
            <br/>
            <h:outputLabel for="s_redthresholdlabel" value="Threshold Requiring DBA Attention (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="s_redThresholdvalue" label="s_RedThreshold" style="text-align:right"
                         value="#{configuration.s_redThreshold}"/>
                       
            <h:outputLabel for="s_yellowthresholdlabel" value="Unhealthy Threshold (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="s_yellowThresholdvalue" label="s_YellowThreshold" style="text-align:right"
                         value="#{configuration.s_yellowThreshold}"/>
                        
            <h:outputLabel for="rollbacksegmentslabel" value="Rollback Segment" style="font-weight: bold"/>  
            <br/>
            <h:outputLabel for="rs_redthresholdlabel" value="Threshold Requiring DBA Attention (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="rs_redThresholdvalue" label="rs_RedThreshold" style="text-align:right"
                         value="#{configuration.rs_redThreshold}"/>
                       
            <h:outputLabel for="rs_yellowthresholdlabel" value="Unhealthy Threshold (%): "
            styleClass="requiredLbl"/>
            <h:inputText id="rs_yellowThresholdvalue" label="rs_YellowThreshold" style="text-align:right"
                         value="#{configuration.rs_yellowThreshold}"/>
            
            </h:panelGrid>
            </p:panel>
            
            <p:panel header="Input Time Block Parameters">
            <h:panelGrid columns="2">
                
            <h:outputLabel for="Xlabel" value="X Unit Time Block (in minutes): "
            styleClass="requiredLbl"/>
            <h:inputText id="Xvalue" label="X" style="text-align:right"
                         value="#{configuration.XValue}"/>
            
            <h:outputLabel for="Ylabel" value="Y Unit Time Block (in minutes): "
            styleClass="requiredLbl"/>
            <h:inputText id="Yvalue" label="Y" style="text-align:right"
                         value="#{configuration.YValue}"/>
                        
            <p:commandButton
            value="Submit"
            update="panel"
            action="#{configuration.saveConfig()}"
            ajax="false"/>
            
            <p:growl id="growl" showDetail="true" life="3000" />
            
            </h:panelGrid>
            </p:panel>
        
        </h:form>
        </ui:define>
    </ui:composition>   

</html>

